/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package algoritmosgenetico;

/**
 *
 * @author Gustavo Bula
 */
public class Solucion {
    private int[]individuo;
    private double funcion;
    
    public Solucion(int[]i, double funcion){
        this.individuo=i;
        this.funcion=funcion;
    }

    public int[] getIndividuo() {
        return individuo;
    }

    public double getFuncion() {
        return funcion;
    }
    
    public void imprimir(){
        System.out.print("(");
        for(int i=0;i<individuo.length;++i){
        System.out.print(individuo[i]+" ");    
        }
        System.out.println(")");
        System.out.println(funcion);
    }

}
